#pragma  once

class ConfigFile
{
private:
	bool misexist;
	CString mpath;
	CString mfn;
	CString mdsv;
	TCHAR   mstrbuf[MAX_PATH];
public:
	ConfigFile();
	~ConfigFile() ;
	int init( void ) ;
	bool isEixst() ;
	CString GetStr( CString key );
	CString GetStr( CString section, CString key );
	int GetInt( CString key, int dv );
	int GetInt( CString section, CString key, int dv );
	void SetStr( CString key, CString val );
	void SetStr( CString section, CString key, CString val );
	bool setInt(CString sec, CString key, int val ) ;
};
